﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.ObjectModel;
using RssV_m_v.ViewModel;
using System.Collections.Generic;
using RssV_m_v.Model;

namespace RssV_m_v.Design
{
    /// <summary>
    /// Classe permettant l'affichage des données dans blend
    /// Pas besoin de la modifier pour l'application
    /// </summary>
    public class DesignRssService : IRssService
    {
        public void chargerRss(string feedUrl, Action<ObservableCollection<News>> getRssFeedCompleted)
        {
            var items = new ObservableCollection<News>();
            for (int i = 0; i < 10; i++)
            {
                items.Add(new News { Title = "Title", Description = "Description" });
            }

            getRssFeedCompleted(items);
        }
    }
}
